// Добавление тегов
document.addEventListener('DOMContentLoaded', function() {
    const currentPath = window.location.pathname;
    const streamPathRegex = /(\/stream(\/|\/index)?|\/teach\/control\/?)$/;
    if (!streamPathRegex.test(currentPath)) {
        return;
    }
    const divContents = [
        ['Стратегии', 'Маркетинг'],
        ['SMM', 'Digital маркетинг'],
    ];
    const allDivs = document.querySelectorAll('.mainstream .stream-table tr td div');
    const maxIndex = Math.min(allDivs.length, divContents.length);
    for (let i = 0; i < maxIndex; i++) {
        const div = allDivs[i];
        const contentForThisDiv = divContents[i];
        contentForThisDiv.forEach((content, idx) => {
            const boldText = document.createElement('b');
            boldText.textContent = content;
            if (idx > 0) {
                div.appendChild(document.createTextNode(' '));
            }
            div.appendChild(boldText);
        });
    }
});